package com.ktjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.dto.UserDTO;
import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author jjx
 * @since 2025-07-28
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据条件分页查询用户列表
     * @param page
     * @param userDTO
     * @return
     */
    IPage<SysUser> getPage(Page<SysUser> page, @Param("userDTO") UserDTO userDTO);

    /**
     * 根据条件查询用户列表
     * @param userDTO
     * @return
     */
    List<SysUser> getList(@Param("userDTO") UserDTO userDTO);

}
